                <!-- table -->
				<div class="box">
					<!-- box / title -->
					<div class="title">
						<h5>
                            <?=$title;?>
                            <?php if($date_start!='-')
                                echo $coa.' Periode ' .indonesian_date($date_start).' s/d '.indonesian_date($date_end);
                            ?>
                        </h5>
						<div class="search">
                        <?php if($date_start!='-'): ?>
                            <?=form_open('cashflow/cash/getMutationCashExport')?>
								<div class="input">
                                    <label class="search"><?=lang('export')?></label>
									<?=form_dropdown('export',config('export'))?>
								</div>
								<div class="button">
									<?=form_submit('submit',lang('export'))?>
								</div>
							<?=form_close()?>
                        
                        <?php else:?>
                            <?=form_open('cashflow/cash/getMutationCash')?>
								<div class="input">
                                    <?=form_dropdown('day',config('day'),date('dd'))?>
                                    <?=form_dropdown('month',config('month'),date('m'))?>
                                    <?=form_dropdown('year',config('year'),date('Y'))?>
								</div>

                                <div class="input">
									<?=form_dropdown('day2',config('day'),date('dd'))?>
                                    <?=form_dropdown('month2',config('month'),date('m'))?>
                                    <?=form_dropdown('year2',config('year'),date('Y'))?>
								</div>
     
                                <div class="input">
									<?=form_dropdown('cash',$cashs,'','style="width:140px"')?>
								</div>
								<div class="button">
									<input type="submit" name="submit" value="Search" />
								</div>
							<?=form_close()?>
                         <?php endif;?>   
						</div>
					</div>
					<!-- end box / title -->
					<div class="table">
                    
                        <?php if($this->session->flashdata('success')):?>
						<div id="message-success" class="message message-success">
							<div class="image">
								<img src="resources/images/icons/success.png" alt="Success" height="32" />
							</div>
							<div class="text">
								<h6>Send Email</h6>
								<span>Send Email Success to Recipient , to Edit email set to Settings Menu !</span>
							</div>
							<div class="dismiss">
									<a href="#message-success"></a>
							</div>
						</div>
						<?php elseif($this->session->flashdata('error')):?>
						<div id="message-error" class="message message-error">
								<div class="image">
									<img src="resources/images/icons/error.png" alt="Error" height="32" />
								</div>
								<div class="text">
									<h6>Send Email</h6>
									<span>Send Email Error to Recipient , to Edit email set to Settings Menu !</span>
								</div>
								<div class="dismiss">
									<a href="#message-error"></a>
								</div>
						</div>
						<?php endif;?>
                        
                        
                        <?php if($date_start!='-'):?>
                        <div class="action">
                            <?=anchor('cashflow/cash/getMutationCashReset','Kembali Ke Awal');?>
			         	</div>
                        <?php endif;?>
                        
						<table>
							<thead>
								<tr>
									<th><?=lang('date')?></th>
                                    <th><?=lang('description')?></th>
                                    <th><?=lang('coa')?></th>
                                    <th><?=lang('pic')?></th>
                                    <th><?=lang('form_no')?></th>
                                    <th><?=lang('debet')?></th>
                                    <th><?=lang('credit')?></th>
                                    <th><?=lang('saldo')?></th>
                                    <th><?=lang('dept')?></th>
								</tr>
							</thead>
							<tbody>
                                <?php 
                                $i=1;
                                foreach($mutations as $row):
                                    if($i==1): ?>
                                        <tr>
                                            <td><?=$row['Tanggal']?></td>
                                            <td><?='Saldo Awal'?></td>
                                            <td><?=$coa?></td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td><?=decimal($saldo,2)?></td>
                                            <td></td>
                                        </tr>
                                <?php $i++; 
                                      endif; ?>
                                <?php 
                                    $saldo = ($saldo + $row['Masuk'])-$row['Keluar'];
                                ?>
                                <tr>
                                    <td><?=$row['Tanggal']?></td>
                                    <td><p><?=$row['Uraian']?></p></td>
                                    <td><?=$row['MataAnggaran']?></td>
                                    <td><?=$row['PIC']?></td>
                                    <td><?=$row['NomorPO']?></td>
                                    <td><?=decimal($row['Masuk'],2)?></td>
                                    <td><?=decimal($row['Keluar'],2)?></td>
                                    <td><?=decimal($saldo,2)?></td>
                                    <td><?=$row['DeptID']?></td>
                                </tr>
                                <?php 
                                
                                endforeach;?>
							</tbody>
						</table>
                        
                        <?php if($date_start!='-'):?>
                        <div class="action">
                            <?=anchor('cashflow/cash/getMutationCashReset','Kembali Ke Awal');?>
			         	</div>
                        <?php endif;?>
                        
					</div>
				</div>
				<!-- end table -->